﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_TamUng : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("CmdThoat")]
        private Button _CmdThoat;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("RadTamUngKhachHang")]
        private RadioButton _RadTamUngKhachHang;
        [AccessedThroughProperty("RadTamUngNhaCungCap")]
        private RadioButton _RadTamUngNhaCungCap;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;

        [DebuggerNonUserCode]
        public Frm_TamUng()
        {
            base.Load += new EventHandler(this.Frm_TamUng_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.RadTamUngKhachHang.Checked)
            {
                MyProject.Forms.Frm_KhachHangUngTruoc.Show();
            }
            else
            {
                MyProject.Forms.Frm_TraTruocNguoiBan.Show();
            }
        }

        private void CmdThoat_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_TamUng_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.RadTamUngKhachHang.Checked = true;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.GroupBox1 = new GroupBox();
            this.RadTamUngNhaCungCap = new RadioButton();
            this.RadTamUngKhachHang = new RadioButton();
            this.CmdOK = new Button();
            this.CmdThoat = new Button();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.RadTamUngNhaCungCap);
            this.GroupBox1.Controls.Add(this.RadTamUngKhachHang);
            Point point = new Point(12, 12);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0xfd, 0x74);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.RadTamUngNhaCungCap.AutoSize = true;
            point = new Point(0x19, 0x41);
            this.RadTamUngNhaCungCap.Location = point;
            this.RadTamUngNhaCungCap.Name = "RadTamUngNhaCungCap";
            size = new Size(0x76, 0x11);
            this.RadTamUngNhaCungCap.Size = size;
            this.RadTamUngNhaCungCap.TabIndex = 0;
            this.RadTamUngNhaCungCap.TabStop = true;
            this.RadTamUngNhaCungCap.Text = "Trả trước người b\x00e1n";
            this.RadTamUngNhaCungCap.UseVisualStyleBackColor = true;
            this.RadTamUngKhachHang.AutoSize = true;
            this.RadTamUngKhachHang.Checked = true;
            point = new Point(0x19, 0x1d);
            this.RadTamUngKhachHang.Location = point;
            this.RadTamUngKhachHang.Name = "RadTamUngKhachHang";
            size = new Size(0x83, 0x11);
            this.RadTamUngKhachHang.Size = size;
            this.RadTamUngKhachHang.TabIndex = 0;
            this.RadTamUngKhachHang.TabStop = true;
            this.RadTamUngKhachHang.Text = "Kh\x00e1ch h\x00e0ng ứng trước";
            this.RadTamUngKhachHang.UseVisualStyleBackColor = true;
            this.CmdOK.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(110, 0x86);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4b, 0x17);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 1;
            this.CmdOK.Text = "OK";
            this.CmdOK.UseVisualStyleBackColor = true;
            this.CmdThoat.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdThoat.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0xbf, 0x87);
            this.CmdThoat.Location = point;
            this.CmdThoat.Name = "CmdThoat";
            size = new Size(0x4b, 0x17);
            this.CmdThoat.Size = size;
            this.CmdThoat.TabIndex = 1;
            this.CmdThoat.Text = "Tho\x00e1t";
            this.CmdThoat.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x115, 170);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdThoat);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_TamUng";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "TH-0018";
            this.Text = "TAM UNG";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual Button CmdThoat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdThoat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdThoat_Click);
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click -= handler;
                }
                this._CmdThoat = value;
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual RadioButton RadTamUngKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RadTamUngKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RadTamUngKhachHang = value;
            }
        }

        internal virtual RadioButton RadTamUngNhaCungCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RadTamUngNhaCungCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RadTamUngNhaCungCap = value;
            }
        }
    }
}

